﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for FacilityBooking
/// </summary>
public class FacilityBooking:Booking
{
	
    /// <summary>
    /// Fields of FacilityBooking
    /// </summary>
    #region Fields
    int id;
    Facility facility;
    int quantity;   
    DateTime rentTime;
    decimal price;
    int during;
    string note;
    #endregion

    /// <summary>
    /// Properties of FacilityBooking
    /// </summary>
    #region Properties
    public int ID
    {
        get { return id; }
        set { id = value; }
    }
    public Facility Facility
    {
        get { return facility; }
        set { facility = value; }
    }
    public int Quantity
    {
        get { return quantity; }
        set { quantity = value; }
    }
    public DateTime RentTime
    {
        get { return rentTime; }
        set { rentTime = value; }
    }
    public int During
    {
        get { return during; }
        set { during = value; }
    }
    public decimal Price
    {
        get { return price; }
        set { price = value; }
    }
    public string Note
    {
        get { return note; }
        set { note = value; }
    }
    #endregion

    /// <summary>
    /// Constructures FacilityBooking
    /// </summary>
    #region Constructures
    public FacilityBooking()
    {
        id = 0;
        facility = new Facility();
        quantity = 0;
        rentTime = new DateTime();
        during = 0;

    }
    public FacilityBooking(int quantity, DateTime rentTime, int during)
	{
        this.id = 0;
        this.quantity = quantity;
        this.rentTime = rentTime;
        this.during = during;
    }
    #endregion
}